<template>
	<div class="app-container">
		<div class="left">
			<div @click="gopath('task')">巡察任务</div>
			<div @click="gopath('baogao')">报告管理</div>
		</div>
		<div class="right">
			<div @click="gopath('template')">整改结果评分</div>
			<div @click="gopath('smartPanel')">数据可视化</div>
		</div>
	</div>
</template>

<script>
	import {
		mapGetters
	} from "vuex";
	export default {
		data() {
			return {

			};
		},
		computed: {
			...mapGetters(["userId"]),
			...mapGetters(["userObj"]),
			...mapGetters(["userName"]),
		},
		created() {

		},
		methods: {
			quitAppClick() {
				console.log('exit app')
				this.$electron.ipcRenderer.send("close-lj")
			},
			async logout() {
				//await this.$store.dispatch('user/logout')
				this.$router.push(`/login?redirect=${this.$route.fullPath}`)
			},
			gopath(e){
				this.$router.push(e)
			}
		},
	};
</script>
<style scoped lang="scss">
	.app-container {
		height: calc(100vh - 200px);
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		
		>div {
			width: 40%;
			display: flex;
			flex-direction: row;
			justify-content: space-around;

			>div {
				display: flex;
				flex-direction: column;
				width: 40%;
				text-align: center;
				height: 40vh;
				background-image: linear-gradient(to bottom, #ffda81, #fff9c6);
				padding: 30px;
				display: flex;
				justify-content: center;
				align-items: center;
				border-radius: 30px;
				font-size: 30px;
				line-height: 50px;
				font-weight: bold;
				color: #f20000;
				white-space: nowrap;
			}
			>div:hover {
				cursor: pointer;
				box-shadow: 0 0 20px #8a5517;
				background-image: linear-gradient(to top, #ffda81, #fff9c6);
			}
		}

		.left {
			>div {
				transform: perspective(400px) rotate3d(0, 5, 0, 5deg);
			}
		}

		.right {
			>div {
				transform: perspective(400px) rotate3d(0, 5, 0, -5deg);
			}
		}
	}

	.index-panel {
		padding: 10vh 10vw;
		display: flex;
		justify-content: space-between;
	}

	.index-panel>.index-panel img {
		margin-bottom: 40px;
	}

	h2 {
		text-align: center;
		line-height: 120px;
		font-size: 56px;
		margin-top: 0;
		color: #ffef92;
	}

	label {
		line-height: 40px;
	}

	.btn-add {
		display: block;
		width: 100%;
		border-radius: 10px;
		border: none;
		height: 100px;
		color: #ffffff;
		background-color: #1678ff;
	}

	.huiyi-title {
		margin-bottom: 20px;
		display: flex;
		justify-content: space-between;
	}

	.huiyi-list {
		height: calc(90vh - 166px);
		overflow-x: hidden;
	}

	.huiyi-box {
		display: flex;
		align-items: flex-end;
	}

	.huiyi-info span {
		color: #9f9f9f;
	}

	.huiyi-info p {
		font-weight: bold;
		font-size: 18px;
	}

	.huiyi-detail {
		height: 100%;
		text-align: right;
		cursor: pointer;
	}

	.huiyi-detail div {
		color: #999999;
	}

	.huiyi-detail div:hover {
		color: #1678ff;
	}

	.item {
		margin: 10px 0;
		padding: 10px;
	}

	.btn-box {
		margin-top: 20px;
	}

	.quanxuan {
		cursor: pointer;
		padding: 5px 10px;
		border-radius: 5px;
		background-color: #eaeaea;
	}

	.active {
		background-color: #f0f8ff;
	}

	.all {
		background-color: #1678ff;
		color: #ffffff;
	}

	.top-left {
		display: flex;
		align-items: center;
	}

	.top-left>div {
		display: flex;
		align-items: center;
		padding: 0 15px;
		background-image: linear-gradient(to bottom, #ffda81, #fff9c6);
		border-radius: 5px;
		line-height: 36px;
		height: 36px;
		margin-right: 10px;
	}

	.top-left img {
		margin-left: 10px;
		width: 24px;
		height: 24px;
	}

	.top-right {
		position: fixed;
		right: 30px;
		top: 30px;
	}

	.bottom-left {
		position: fixed;
		left: 30px;
		bottom: 30px;
	}

	.bottom-right {
		position: fixed;
		right: 30px;
		bottom: 30px;
	}

	.file-list {
		height: 60vh;
		overflow-x: hidden;
	}

	.file-list .info {
		float: left;
		text-align: center;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		margin: 10px;
		width: calc(20% - 20px);
		border: 1px solid #cccccc;
		padding: 10px 20px;
		border-radius: 10px;
		height: 140px;
	}

	.file-list span {
		text-align: left;
		display: flex;
		justify-content: center;
		margin: 10px 0;
		font-size: 17px;
		font-weight: bold;
	}
</style>